<template>
  <div id="app">
    <transition name="fade" mode="out-in">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script lang="ts">
import Vue from "vue";
import Component from "vue-class-component";

@Component
export default class EXAM extends Vue {
  public name: string = "app";
}
</script>

<style lang="scss">
// @import "@/styles/vars.scss";
// @import "@/styles/elementui-variables.scss";

body {
  margin: 0px;
  padding: 0px;
  /*background: url(assets/bg1.jpg) center !important;
		background-size: cover;*/
  // background: #1F2D3D;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, SimSun, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

// ::-webkit-scrollbar {display: none};

#app {
  position: absolute;
  top: 0px;
  bottom: 0px;
  width: 100%;
}

.el-submenu [class^="fa"] {
  vertical-align: baseline;
  margin-right: 10px;
}

.el-menu-item [class^="fa"] {
  vertical-align: baseline;
  margin-right: 10px;
}

.toolbar {
  background: #f2f2f2;
  padding: 10px;
  //border:1px solid #dfe6ec;
  margin: 10px 0px;
  .el-form-item {
    margin-bottom: 10px;
  }
}

.fade-enter-active,
.fade-leave-active {
  transition: all 0.2s ease;
}

.fade-enter,
.fade-leave-active {
  opacity: 0;
}

// 提高权重
#app .overflow-scroll {
  ::-webkit-scrollbar {
    width: 5px;
    height: 1px;
    display: block;
  }
  ::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    // border-radius: 10px;
    // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    // background: #535353;

    border-radius: 10px;
    background-color: #909399;
    background-image: -webkit-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.2) 25%,
      transparent 25%,
      transparent 50%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.2) 75%,
      transparent 75%,
      transparent
    );
  }
  ::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    // border-radius: 10px;
    // background: #ededed;

    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #ededed;
    border-radius: 10px;
  }
}

// padding, margin
.padding-0 {
  padding: 0;
}

.padding-sm {
  padding: 10px;
}

.padding {
  padding: 15px;
}

.padding-lg {
  padding: 20px;
}

.padding-bottom-xs {
  padding-bottom: 5px;
}

.padding-bottom-sm {
  padding-bottom: 10px;
}

.padding-bottom {
  padding-bottom: 15px;
}

.padding-bottom-lg {
  padding-bottom: 20px;
}

.padding-lr-xs {
  padding-left: 5px;
  padding-right: 5px;
}
.padding-lr-sm {
  padding-left: 10px;
  padding-right: 10px;
}
.padding-lr {
  padding-left: 15px;
  padding-right: 15px;
}

.padding-tb {
  padding-top: 15px;
  padding-bottom: 15px;
}

.padding-tb-lg {
  padding-top: 20px;
  padding-bottom: 20px;
}

.margin-xs {
  margin: 5px;
}
.margin-sm {
  margin: 10px;
}
.margin {
  margin: 15px;
}

.margin-left-xs {
  margin-left: 5px;
}
.margin-left-sm {
  margin-left: 10px;
}
.margin-left {
  margin-left: 15px;
}

.margin-right-xs {
  margin-right: 5px;
}
.margin-right-sm {
  margin-right: 10px;
}
.margin-right {
  margin-right: 15px;
}

.margin-lr-xs {
  margin-left: 5px;
  margin-right: 5px;
}
.margin-lr-sm {
  margin-left: 10px;
  margin-right: 10px;
}
.margin-lr {
  margin-left: 15px;
  margin-right: 15px;
}

.margin-top-xs {
  margin-top: 5px;
}

.margin-top-sm {
  margin-top: 10px;
}

.margin-top {
  margin-top: 15px;
}

.margin-top-lg {
  margin-top: 20px;
}

.margin-bottom-xs {
  margin-bottom: 5px;
}

.margin-bottom-sm {
  margin-bottom: 10px;
}

.margin-bottom {
  margin-bottom: 15px;
}

.margin-bottom-lg {
  margin-bottom: 20px;
}

.margin-tb-xs {
  margin-top: 5px;
  margin-bottom: 5px;
}

.margin-tb-sm {
  margin-top: 10px;
  margin-bottom: 10px;
}

.margin-tb {
  margin-top: 15px;
  margin-bottom: 15px;
}

.margin-tb-lg {
  margin-top: 20px;
  margin-bottom: 20px;
}

// height

.min-height {
  min-height: 200px;
}

.min-height-lg {
  min-height: 300px;
}

// text
.text-size-xs {
  font-size: 14px;
}
.text-size-sm {
  font-size: 16px;
}
.text-size {
  font-size: 18px;
}
.text-size-lg {
  font-size: 20px;
}

.text-center {
  text-align: center;
}

.title {
  font-size: 18px;
  font-weight: 400;
  font-family: SimHei;
}

.sub-title {
  font-size: 16px;
  font-weight: 300;
  font-family: SimHei;
}

.description {
  color: gray;
  font-size: 12px;
}

.cursor-pointer {
  cursor: pointer;
}

.color-black {
  color: black;
}

.color-blue {
  color: #409eff;
}

.color-red {
  color: #f56c6c;
}

.color-green {
  color: #67c23a;
}

.background-gray {
  background: #ccc;
}

.background-gray-opacity {
  background: rgba(204, 204, 204, 0.2);
}

.background-green {
  background: #67c23a;
}

.background-red {
  background: #f56c6c;
}

.text-overflow-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

// box
.box-border {
  box-sizing: border-box;
}

// @for $i from 2 to 5 {
//   .text-overflow-ellipsis-#{$i} {
//     overflow: hidden;
//     text-overflow: ellipsis;
//     display: -webkit-box;
//     -webkit-line-clamp: $i;
//     -webkit-box-orient: vertical;
//   }
// }
</style>
